import ajax from './index'



export function panelStatistics(data) {
  return ajax.post('/backend/finance/panelStatistics?type=' + data)
}
export function trendCharts(data) {
  return ajax.post('/backend/finance/trendCharts', data)
}

//登录
export function loginBackground(data) {
  return ajax.post('/backend/admin/login', data)
}

export function userInfo() {
  return ajax.get('/backend/admin/info')
}

export function admin_update_password(data) {
  return ajax({
    url: "/backend/admin/updatePassword",
    method: "post",
    data: data
  });
}

export function admin_summary(param) {
  return ajax({
    url: "/backend/admin/summary",
    method: "get",
    params: param
  });
}
export function admin_dashboard(param) {
  return ajax({
    url: "/backend/admin/dashboard",
    method: "get",
    params: param
  });
}
